package com.caiyouxi;

import de.codecentric.boot.admin.config.EnableAdminServer;
import org.apache.log4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 系统启动类
 * author:weichangyong 2017-08-31
 */
@EnableAutoConfiguration
@SpringBootApplication
//开启事务
@EnableTransactionManagement
@EnableAdminServer
public class Application {
    private static Logger logger = Logger.getLogger(Application.class);

    /**
     * Start
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        logger.info("Server Start Success");
    }

}
